home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / SciAn / src / ScianLights.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  749b  |  35 lines

  1. /*ScianLights.h
  2.   Lights external definitions
  3.   Eric Pepke
  4.   May 21, 1991
  5. */
  6.  
  7. typedef struct
  8.     {
  9.     real theta;            /*Theta of light position*/
  10.     real phi;            /*Phi of light position*/
  11.     real baseColor[3];        /*Base color of light*/
  12.     real brightness;        /*Brightness of light*/
  13.     Bool enabled;            /*True iff enabled*/
  14.     } lightSpec;
  15.  
  16. #define IsLight(object) IntVarEql(object, CLASSID, CLASS_LIGHT)
  17.  
  18. #ifdef PROTO
  19. void InitLights(void);
  20. void KillLights(void);
  21. ObjPtr NewLights(void);
  22. void StartLights(ObjPtr, ObjPtr, Bool);
  23. void StopLights(ObjPtr);
  24. void DrawLights(ObjPtr, ObjPtr, int, real);
  25. void TwoSided(Bool);
  26. #else
  27. void InitLights();
  28. void KillLights();
  29. ObjPtr NewLights();
  30. void StartLights();
  31. void StopLights();
  32. void DrawLights();
  33. void TwoSided();
  34. #endif
  35.